import os

import pytest
if __name__ == '__main__':#用于运行环境检测  __name__内置变量，
    # 当文件被运行时，__name__的值被设置为__main__
    pytest.main(['-vs',"./testcases/test_runner.py","--alluredir","./report/json_report","--clean-alluredir"])
    os.system("allure generate ./report/json_report -o ./report/html_report --clean")